import http from "./http";

const getData = (url: string, params: Record<string, string | number>, header = {} as Record<string, string>) => {
	return http(url, "GET", params, header);
};

const postData = (url: string, data: Record<string, any>, header = {} as Record<string, string>) => {
	return http(url, "POST", data, header);
};

export { getData, postData };
